// 默认的路由
import Layout from '@/layout/index2'

export const defaultRoutes = [
  // 留一个当模板
  // {
  //   path: '/wms/palletBatch',
  //   component: Layout,
  //   hidden: false,
  //   children: [
  //     {
  //       path: 'palletBatch',
  //       component: () => import('@/views/wms/palletBatch/palletBatch'),
  //       name: 'PalletBatch',
  //       meta: { title: '托批次录入' }
  //     }
  //   ]
  // },
]
export const superRoutes = [

  {
    path: '/tenantManage',
    component: Layout,
    hidden: false,
    meta: { title: '租户管理', icon: '租户管理' },
    children: [
      {
        path: 'tenantManage',
        component: () => import('@/views/superManage/tenantManage'),
        name: 'TenantManage',
        type: 'superadmin',
        meta: { title: '租户管理', icon: '租户管理' }
      }
    ]
  },
  {
    path: '/tenantRole',
    component: Layout,
    hidden: false,
    meta: { title: '租户角色', icon: '租户角色' },
    children: [
      {
        path: 'tenantRole',
        component: () => import('@/views/superManage/tenantRole'),
        name: 'TenantRole',
        type: 'superadmin',
        meta: { title: '租户角色', icon: '租户角色' }
      }
    ]
  },
  {
    path: '/tenantMenu',
    component: Layout,
    hidden: false,
    meta: { title: '租户菜单', icon: '租户菜单' },
    children: [
      {
        path: 'tenantMenu',
        component: () => import('@/views/superManage/tenantMenu'),
        name: 'TenantMenu',
        type: 'superadmin',
        meta: { title: '租户菜单', icon: '租户菜单' }
      },
      {
        path: 'customizationServeConfiguration',
        component: () => import('@/views/superManage/tenantMenu/customizationServeConfiguration'),
        name: 'customizationServeConfiguration',
        type: 'superadmin',
        meta: { title: '定制化服务', icon: '定制化服务' }
      }
    ]
  },
  {
    path: '/iotManage',
    component: Layout,
    hidden: false,
    meta: { title: 'IOT管理', icon: '设备台账' },
    children: [
      {
        path: 'iotConfiguration',
        component: () => import('@/views/superManage/iotManage/iotConfiguration'),
        name: 'IotConfiguration',
        type: 'superadmin',
        meta: { title: '设备配置', icon: '设备台账' }
      },
      {
        path: 'iotSearch',
        component: () => import('@/views/superManage/iotManage/iotSearch'),
        name: 'IotSearch',
        type: 'superadmin',
        meta: { title: '设备查询', icon: '查询' }
      },
      {
        path: 'iotUpload',
        component: () => import('@/views/superManage/iotManage/iotUpload'),
        name: 'IotUpload',
        type: 'superadmin',
        meta: { title: '上传数据', icon: '导入' }
      }
    ]
  },
  {
    path: '/reportForm',
    component: Layout,
    hidden: false,
    meta: { title: '系统管理', icon: '系统管理' },
    children: [
      {
        path: 'reportFormSetting',
        component: () => import('@/views/superManage/reportForm'),
        name: 'reportForm',
        type: 'superadmin',
        meta: { title: '打印配置', icon: '租户管理' }
      },
      {
        path: 'superNotice',
        component: () => import('@/views/superManage/reportForm/superNotice'),
        name: 'superNotice',
        type: 'superadmin',
        meta: { title: '系统公告', icon: '系统公告' }
      }
    ]
  },
  {
    path: '/systemMonitoring',
    component: Layout,
    hidden: false,
    meta: { title: '系统监控', icon: '可视化平台' },
    children: [
      {
        path: 'customerFollow',
        component: () => import('@/views/superManage/systemMonitoring/customerFollow'),
        name: 'CustomerFollow',
        type: 'superadmin',
        meta: { title: '客户跟进', icon: 'circle' }
      },
      {
        path: 'registerJournal',
        component: () => import('@/views/superManage/systemMonitoring/registerJournal'),
        name: 'RegisterJournal',
        type: 'superadmin',
        meta: { title: '登录日志', icon: '审批设置' }
      },
      {
        path: 'feedback',
        component: () => import('@/views/superManage/systemMonitoring/feedback'),
        name: 'Feedback',
        type: 'superadmin',
        meta: { title: '意见反馈', icon: '审批设置' }
      },
      {
        path: 'diskSpaceMonitoring',
        component: () => import('@/views/superManage/systemMonitoring/diskSpaceMonitoring'),
        name: 'DiskSpaceMonitoring',
        type: 'superadmin',
        meta: { title: '磁盘空间监控', icon: '审批设置' }
      },
      {
        path: 'operationJournal',
        component: () => import('@/views/superManage/systemMonitoring/operationJournal'),
        name: 'OperationJournal',
        type: 'superadmin',
        meta: { title: '操作日志', icon: '系统管理' }
      },
      {
        path: 'databaseMonitor',
        component: () => import('@/views/superManage/systemMonitoring/databaseMonitor'),
        name: 'DatabaseMonitor',
        type: 'superadmin',
        meta: { title: '数据库监控', icon: '物料信息' }
      },
      {
        path: 'serveMonitor',
        component: () => import('@/views/superManage/systemMonitoring/serveMonitor'),
        name: 'ServeMonitor',
        type: 'superadmin',
        meta: { title: '服务监控', icon: '设备类型' }
      },
      {
        path: 'memoryMonitor',
        component: () => import('@/views/superManage/systemMonitoring/memoryMonitor'),
        name: 'MemoryMonitor',
        type: 'superadmin',
        meta: { title: '缓存监控', icon: '通讯协议类型' }
      },
      {
        path: 'memoryList',
        component: () => import('@/views/superManage/systemMonitoring/memoryList'),
        name: 'MemoryList',
        type: 'superadmin',
        meta: { title: '缓存列表', icon: '设备配置' }
      },
      {
        path: 'superLarge',
        component: () => import('@/views/superManage/systemMonitoring/superLarge'),
        name: 'SuperLarge',
        type: 'superadmin',
        meta: { title: '超管大屏', icon: '编码规则' }
      }

    ]
  }
]
